#!/system/bin/sh
# @version=1

run(){
	eval{"$1"}
}

go(){
		##
		run 'insmod /system/lib/modules/wlan.ko'
		##
		run 'wlan_loader -f /system/etc/wifi/Fw1251r1c.bin -e /proc/calibration -i /data/data/android.hermes/conf/tiwlan.ini'
		##
		run 'ifconfig tiwlan0 192.168.42.102 netmask 255.255.255.0'
		##
		run 'ifconfig tiwlan0 up'
}

case "$1" in
'start')
    go
;;
esac